package com.yjd.comm.fs.file.model;

import java.io.InputStream;

import com.yjd.comm.fs.file.IUpWrap;

/**
 * 按流上传文件封装对象
 * 
 * @author ready
 * 
 */
public class InputStreamUpWrap implements IUpWrap {
	/**
	 * 保存的绝对路径
	 */
	private String saveAbsFilePath;
	/**
	 * 上传的文件名称
	 */
	private String fileName;
	/**
	 * 文件流
	 */
	private InputStream inputStream;

	public InputStreamUpWrap() {
	}

	public InputStreamUpWrap(String saveAbsFilePath, String fileName,
			InputStream inputStream) {
		super();
		this.saveAbsFilePath = saveAbsFilePath;
		this.fileName = fileName;
		this.inputStream = inputStream;
	}

	public String getSaveAbsFilePath() {
		return saveAbsFilePath;
	}

	public void setSaveAbsFilePath(String saveAbsFilePath) {
		this.saveAbsFilePath = saveAbsFilePath;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public void setIn(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	@Override
	public InputStream getInputStream() throws Exception {
		return this.inputStream;
	}

}